<template>
	<view>
		<view class="head">
			<view class="date">
				<u-icon name="arrow-left"></u-icon>
				<text>2024 - 3 - 18</text>
				<u-icon name="arrow-right"></u-icon>
			</view>
			
			<view class="income-box">
				<view class="overall">总核算收入：<text>816.8元</text> </view>
				<view class="minor-text">自主部分系统核算收入</view>
				<view class="all-num">296.00 <text>（9单）</text> </view>
				<u-line length="622rpx" style="margin: auto;margin-top: 32rpx;"></u-line>
				
				<view class="order-each">
					<view class="minor-text">台球自助扫码开台收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">棋牌自助扫码开台收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">其他桌台类型收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">充值本金收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">预定桌台收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">定时开台收入</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				
				<view class="collapse-box" :class="{ 'collapse-height': !billingShow }">
					<view class="collapse-title" @click="billingShow = !billingShow">
						<text>计费说明</text>
						<image src="../../static/top-img.png" mode=""></image>
					</view>
					<view class="order-each">
						<view class="minor-text">自助提现收入系统扣点服务费(3%)</view>
						<view class="single-range"> <text>-￥8.8</text></view>
					</view>
					<view class="order-each">
						<view class="minor-text">微信/银行平台提现手续费(0.6%)</view>
						<view class="single-range"> <text>-￥1.8</text></view>
					</view>
					<view class="text-r">
						<view class=""></view>
						<view class="">
							<view class="minor-text">实际系统每日提现收入</view>
							<text>￥269.66</text>
						</view>
					</view>
					<view class="text-r">
						<view class=""></view>
						<view class="">
							<view class="view">(已扣除下方其他渠道收入部分的扣点服务费)</view>
						</view>
					</view>
				</view>
			</view>
			
			<view class="income-box">
				<view class="minor-text">其他渠道收入</view>
				<view class="all-num">520.00 <text>（22单）</text> </view>
				<u-line length="622rpx" style="margin: auto;margin-top: 32rpx;"></u-line>
				
				<view class="order-each">
					<view class="minor-text">手动开台核算金额（线下自行收款）</view>
					<view class="single-range"> <text>￥0.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">美团团购自助核销（美团单独打款）</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">抖音团购自助核销（抖音单独打款）</view>
					<view class="single-range"> <text>￥203.00</text> /5单</view>
				</view>
				<view class="order-each">
					<view class="minor-text">畅打卡发放金额（线下自行收款）</view>
					<view class="single-range"> <text>￥0.00</text> /5单</view>
				</view>
				
				<view class="collapse-box" :class="{ 'collapse-height': !billingShow2 }">
					<view class="collapse-title" @click="billingShow2 = !billingShow2">
						<text>计费说明</text>
						<image src="../../static/top-img.png" mode=""></image>
					</view>
					<view class="order-each">
						<view class="minor-text">线下手动开台扣点服务费(3%) <view class="">(仅开、关灯不产生订单不收取服务费)</view> </view>
						<view class="single-range"> <text>-￥8.8</text></view>
					</view>
					<view class="order-each">
						<view class="minor-text">团购自助核销扣点服务费(3%)
						    <view class="">(团购收入的提现不走系统，线下手动核销不收取服务费)</view>
						</view>
						<view class="single-range"> <text>-￥1.8</text></view>
					</view>
					<view class="order-each">
						<view class="minor-text">畅打卡发放扣点服务费（3%）
						    <view class="">(老板主动发放给顾客从线下收款要收取服务费)</view>
						</view>
						<view class="single-range"> <text>-￥1.8</text></view>
					</view>
					
					<view class="note">(注：该部分收入的扣点服务费从自助部分收入中扣除)</view>
				</view>
			</view>
			
			<view class="income-box">
				<view class="minor-text">其他渠道收入</view>
				<view class="all-num">520.00 <text>（22单）</text> </view>
				<u-line length="622rpx" style="margin: auto;margin-top: 32rpx;"></u-line>
				
				<view class="order-each">
					<view class="minor-text">会员使用余额</view>
					<view class="single-range"> <text>￥25.00</text></view>
				</view>
			</view>
			
			<view class="shop-give">
				<view class="give" @click="giveRecord">
					<view class="give-l">商家营销赠送</view>
					<view class="give-r">营销赠送记录 <image src="../../static/right-l.png" mode=""></image> </view>
				</view>
				<u-line length="622rpx" style="margin: auto;"></u-line>
				<view class="order-each">
					<view class="minor-text">商家赠送优惠券</view>
					<view class="single-range"> <text>￥0.00</text>/0张</view>
				</view>
				<view class="order-each">
					<view class="minor-text">商家赠送余额</view>
					<view class="single-range"> <text>￥0.00</text></view>
				</view>
			</view>
			
			<view class="illustrate-box">
				<view class="illustrate-title">—— 提现、应收数据说明 ——</view>
				<view class="illustrate">
					检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败。 
					<br/><br/>
					检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败。 
					<br/><br/>
					检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败。 
					<br/><br/>
					检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败。 
					<br/><br/>
					检查台球是否按照要求全部归还、白球是否归还在指定位置，否则将提示关锁失败。
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				billingShow:true,
				billingShow2:true
			}
		},
		methods: {
			giveRecord(){
				uni.navigateTo({
					url:'/pages/give-record/give-record'
				})
			}
		}
	}
</script>

<style>
	.minor-text {
		font-weight: 500;
		font-size: 24rpx;
		color: #A4A9B7;
		padding: 32rpx 0 0 32rpx;
	}
</style>
<style lang="scss">
	page {
		background: #F7F8FA;
	}
	.head {
		width: 750rpx;
		height: 416rpx;
		background: linear-gradient(to bottom, #E4F6F1,#E5F4F5, #F7F8FA);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		
		.date {
			width: 430rpx;
			height: 80rpx;
			background: #FFFFFF;
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			margin: auto;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: 400;
			font-size: 30rpx;
			color: #1C274C;
			text {
				padding: 0 32rpx;
			}
		}
		
		.income-box {
			width: 686rpx;
			background: #FFFFFF;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			margin: auto;
			margin-top: 32rpx;
			padding-bottom: 32rpx;
			.overall {
				width: 622rpx;
				height: 72rpx;
				line-height: 72rpx;
				background: #4BC264;
				padding: 0 32rpx;
				border-radius: 24rpx 24rpx 0rpx 0rpx;
				font-weight: 500;
				font-size: 26rpx;
				color: rgba(255,255,255,0.7);
				text {
					color: #FFF;
				}
			}
			.all-num {
				font-weight: 500;
				font-size: 48rpx;
				color: #1C274C;
				padding: 16rpx 0 0 32rpx;
				text {
					font-weight: 500;
					font-size: 24rpx;
					color: #4BC264;
				}
			}
			
			.order-each {
				display: flex;
				justify-content: space-between;
				.single-range {
					padding: 32rpx 32rpx 0 0;
					font-weight: 500;
					font-size: 24rpx;
					color: #1C274C;
					text {
						color: #4BC264;
					}
				}
			}
			.note {
				font-weight: 500;
				font-size: 20rpx;
				color: #4BC264;
				padding: 32rpx 0 32rpx 32rpx;
			}
			.collapse-height {
				height: 86rpx;
				transition: height 2s;
			}
			.collapse-box {
				transition: height 2s;
				width: 622rpx;
				// height: 86rpx;
				overflow: hidden;
				background: rgba(75,194,100,0.1);
				border-radius: 24rpx 24rpx 24rpx 24rpx;
				margin: auto;
				margin-top: 24rpx;
				
				.collapse-title {
					display: flex;
					justify-content: space-between;
					padding: 32rpx 32rpx 0 32rpx;
					text {
						font-weight: bold;
						font-size: 24rpx;
						color: #4BC264;
					}
					image {
						width: 24rpx;
						height: 24rpx;
					}
				}
				
				.text-r {
					display: flex;
					justify-content: space-between;
					align-items: center;
					view {
						display: flex;
					}
					// float: right;
				    text {
						font-weight: 500;
						font-size: 32rpx;
						color: #4BC264;
						padding: 26rpx 32rpx 0 0;
					}
					.view {
						font-weight: 500;
						font-size: 20rpx;
						color: #4BC264;
						padding: 11rpx 32rpx 32rpx 0;
					}
				}
			}
		}
		
		.shop-give {
			width: 686rpx;
			background: #FFFFFF;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			margin: auto;
			margin-top: 32rpx;
			padding-bottom: 32rpx;
			.give {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 32rpx;
				.give-l {
					font-weight: bold;
					font-size: 30rpx;
					color: #1C274C;
				}
				.give-r {
					font-weight: 500;
					font-size: 24rpx;
					color: #4BC264;
					image{
						width: 24rpx;
						height: 24rpx;
						position: relative;
						top: 5rpx;
					}
				}
			}
			.order-each {
				display: flex;
				justify-content: space-between;
				.single-range {
					padding: 32rpx 32rpx 0 0;
					font-weight: 500;
					font-size: 24rpx;
					color: #1C274C;
					text {
						color: #4BC264;
					}
				}
			}
		}
		
		.illustrate-box {
			width: 622rpx;
			padding: 32rpx;
			margin: auto;
			background: #EAEBEE;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			.illustrate-title {
				font-weight: bold;
				font-size: 24rpx;
				color: #1C274C;
				text-align: center;
			}
			.illustrate {
				padding-top: 32rpx;
				font-weight: 500;
				font-size: 22rpx;
				color: #6B738B;
			}
		}
	}
</style>
